package com.example.fp.cgc.entity

import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableField
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName

/**
 * @since 2020-02-26
 * @author 蔡
 * @property uid 关注者
 * @property oid 被关注对象
 */
@TableName("user_follow")
class UserFollow {
    @TableId(value = "id", type = IdType.AUTO)
    var id: Int = 0
    @TableField("uid")
    var uid: Int = 0
    @TableField("oid")
    var oid: Int = 0

    constructor(uid: Int, oid: Int) {
        this.uid = uid
        this.oid = oid
    }
}